﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Model.Public
{
    /// <summary>
    /// BaseModel 的摘要说明
    /// </summary>
    public abstract class BaseEntity
    {

        //get db name
        public abstract string GetDBName();

        public abstract string GetKey();

        /// 类 to 字典
        /// <summary>
        /// 类 to 字典
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public abstract Dictionary<string, object> ModelChangeToDic();

        /// 字典 to 类
        /// <summary>
        /// 字典 to 类
        /// </summary>
        /// <param name="dic"></param>
        /// <returns></returns>
        public abstract void DicChangeToModel(Dictionary<string, object> dic);
    }
}